﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace zmMoniter
{
    public partial class frmHistory : DevExpress.XtraEditors.XtraForm
    {
        private string sFlag="";
        public frmHistory()
        {
            InitializeComponent();
        }
        public void setFlag(string flag)
        {
            sFlag=flag;
            if(sFlag=="Artificial")
            {
                gridCol_Warning.Visible=false;
                gridCtl_ArtfHistory.Visible=true;

            }
            else if(sFlag=="Warning")
            {
                gridCtl_ArtfHistory.Visible=false;
                gridCol_Warning.Visible=true;
            }
            else if(sFlag=="Message")
            {
                gridCtl_ArtfHistory.Visible=false;
                gridCol_Warning.Visible=false;
            }
        }
    }
}